package com.wb3.meta.common.enums;

public enum EnumRedisKey {

    //登录token前缀
    LOGIN_TOKEN("chainGame.LOGIN_TOKEN."),
    //地址验签token前缀
    ADDRESS_TOKEN("chainGame.caddressTokenPrefix"),

    /** greph **/
    //nonce值
    NONCE_VALUE("chainGame.nonceValue"),

    /** 角色通过的条件数量 */
    ACTIVITY_CONDITIONS("ACTIVITY_CONDITIONS."),

    /** Quest先到先到奖励 */
    QUEST_AWARD_FIFO("QUEST_AWARD_FIFO.%d"),

    /** Quest抽奖奖励 */
    QUEST_AWARD_DRAW("QUEST_AWARD_DRAW.%d"),

    /** Quest先到先抽 */
    QUEST_AWARD_FIFD("QUEST_AWARD_FIFD.%d"),

    /** Quest先到先抽抽奖次数 */
    QUEST_AWARD_FIFD_TIME("QUEST_AWARD_FIFD_REWARD_TIME.%d.%s"),

    /** Quest先到先抽锁 */
    QUEST_AWARD_FIFD_LOCK("QUEST_AWARD_FIFD_REWARD_LOCK.%d.%s"),

    /** 推特 获取用户 */
    THIRD_PART_TWITTER_GET_USER("THIRD_PART_TWITTER_GET_USER"),

    /** 推特 获取用户 by id */
    THIRD_PART_TWITTER_GET_USERBYID("THIRD_PART_TWITTER_GET_USERBYID"),

    /** 推特 获取推特 */
    THIRD_PART_TWITTER_GET_TWEET("THIRD_PART_TWITTER_GET_TWEET"),

    /** 推特关注cd */
    THIRD_PART_TWITTER_FOLLOW_CD("THIRD_PART_TWITTER_FOLLOW_CD"),

    /** 推特关注 获取前70个粉丝 cd */
    THIRD_PART_TWITTER_FOLLOWER_CD_70("THIRD_PART_TWITTER_FOLLOWER_CD_70"),

    /** 推特关注 获取前70个我关注的人 cd */
    THIRD_PART_TWITTER_FOLLOWING_CD_70("THIRD_PART_TWITTER_FOLLOWING_CD_70"),

    /** 推特转发cd */
    THIRD_PART_TWITTER_RETWEET_CD("THIRD_PART_TWITTER_RETWEET_CD"),

    /** 推特喜欢cd */
    THIRD_PART_TWITTER_LIKE_CD("THIRD_PART_TWITTER_LIKE_CD"),

    /** 推特是否设置头像cd */
    THIRD_PART_TWITTER_AVATAR_CD("THIRD_PART_TWITTER_AVATAR_CD"),

    /** 推特简介cd */
    THIRD_PART_TWITTER_PROFILE_CD("THIRD_PART_TWITTER_PROFILE_CD"),

    /** 推特是否发过推特cd */
    THIRD_PART_TWITTER_SENDED_CD("THIRD_PART_TWITTER_SENDED_CD"),

    /** 推特粉丝数量cd */
    THIRD_PART_TWITTER_QUANTITY_CD("THIRD_PART_TWITTER_QUANTITY_CD"),

    /** 推特绑定cd */
    THIRD_PART_TWITTER_BIND_CD("THIRD_PART_TWITTER_BIND_CD"),

    /** 用户验证discord cd */
    THIRD_PART_DISCORD_CD("THIRD_PART_DISCORD_CD"),

    /** 用户验证discord LOCK  */
    THIRD_PART_DISCORD_LOCK("THIRD_PART_DISCORD_LOCK"),

    /** 用户验证discord 缓存  */
    THIRD_PART_DISCORD_CATCH("THIRD_PART_DISCORD_CATCH"),

    /** 用户获取NFT cd */
    THIRD_PART_GET_NFT("THIRD_PART_GET_NFT");



    // 成员变量
    private String key;

    EnumRedisKey(String name) {
        this.key = name;
    }

    public String getKey() {
        return key;
    }

    /**
     * 动态key
     * @param v 动态后缀
     * @return
     */
    public String getKey(String v) {
        return String.format(key, v);
    }
}
